import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        String str=sc.nextLine();
        char[] ch=new char[1000];
        char[] cha=new char[100];
        int j=0;
        for(int i=0;i<str.length();i++){
            ch[i]=fact(str.charAt(i));
            if(i>1){
                if(ch[i-1]==' '){
                    cha[j]=ch[i];
                    j++;
                }
            }
        }
        System.out.print(ch[0]);
        for(int i=0;i<j;i++){
            System.out.print(cha[i]);
        }
    }
    public static char fact(char ch){
        if(ch>='a'&&ch<='z'){
            ch=(char)(ch-32);
        }
        return ch;
    }
}